-- GENERATED SPELL FOR [Jotek] --


function spell0_13798(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13798', 605, 1)
end

function spell1_13798(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13798', 5289, 1)
end

function Sorts_13798(pUnit, Event)
local choix_sorts_13798 = math.random(0, 1)
if choix_sorts_13798 == 0 then
pUnit:RegisterEvent('spell0_13798', 1, 1)
end
if choix_sorts_13798 == 1 then
pUnit:RegisterEvent('spell1_13798', 1, 1)
end
end

function mob13798_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13798', math.random(1500, 3000), 1)
end

function mob13798_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13798_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13798_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13798, 1, 'mob13798_Action')
RegisterUnitEvent(13798, 2, 'mob13798_Leave')
RegisterUnitEvent(13798, 3, 'mob13798_Kill')
RegisterUnitEvent(13798, 4, 'mob13798_Die')
